home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Online / httpproxy / src / logging.h < prev    next >
C/C++ Source or Header  |  1996-08-20  |  1KB  |  61 lines

  1. /*(( "Header" */
  2. /*
  3.  * $Id: logging.h,v 1.2 1996/04/26 05:14:03 mshopf Exp mshopf $
  4.  *
  5.  * (c) 1995-96 Matthias Hopf
  6.  *
  7.  * Log file functions for httpproxy.
  8.  *
  9.  */
  10.  
  11. /*
  12.  * $Log: logging.h,v $
  13.  * Revision 1.2  1996/04/26  05:14:03  mshopf
  14.  * V0.13 alpha 5 fix.
  15.  *
  16.  * Revision 1.1  1996/04/24  03:20:13  mshopf
  17.  * Initial revision
  18.  *
  19.  */
  20.  
  21.  
  22. /*)) */
  23.  
  24. #ifndef _LOGGING_H__
  25. #define _LOGGING_H__
  26.  
  27. /*(( "Includes" */
  28.  
  29. #include "httpproxy.h"  /* we need request_t for the prototypes... */
  30.  
  31. /*)) */
  32. /*(( "Logging Types" */
  33.  
  34. #define L_ERROR    NULL
  35. #define L_MSG      ((char *) -1)
  36. #define L_ERRMSG   ((char *) -2)
  37. #define L_INFO     ("info")
  38. #define L_WARN     ("warning")
  39.  
  40. /*)) */
  41. /*(( "Prototypes" */
  42.  
  43. /* Open log file. Terminate on failure. */
  44. void    LogOpenFile (const char *Name);
  45.  
  46. /* Close the log file */
  47. void    LogCloseFile (void);
  48.  
  49. /* Print non-formal logging information (preceeded by '*'). Termination with '\n' is necessary. */
  50. void    LogSpecial (const char *Template, ...);
  51.  
  52. /* Specify NULL as request, when not-connected errors occure */
  53. /* Print logging information (only connected) */
  54. void    LogStd (request_t *Req, const char *Status);
  55.  
  56. /* Print error / warning / info / message logging information */
  57. void    LogErr (request_t *Req, const char *Status, const char *Url, int ErrNo, const char *Reason, ...);
  58.  
  59. /*)) */
  60. #endif /* _LOGGING_H__ */
  61.